<!DOCTYPE html>
<html>
<head>
    <meta charset=utf-8"UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>设置</title>
    <link rel="stylesheet" href="__PUBLIC__/mui.min.css"/>
    <link rel="stylesheet" href="__PUBLIC__/iconfont.css" />
    <link rel="stylesheet" href="__PUBLIC__/app.css"/>
</head>
<body>
<header id="header" class="mui-bar mui-bar-nav">
    <h1 class="mui-title">设置</h1>
    <a class="mui-icon mui-icon-left-nav mui-pull-left" onclick="javascript :history.back(-1);"></a>
</header>
<div class="mui-content">
    <ul class="mui-table-view setup-table">
        <li class="mui-table-view-cell">
            <a href="/index/system/model.html?m=14">关于我们</a>
        </li>
        <li class="mui-table-view-cell">
            <a href="/index/system/model.html?m=15">客服热线</a>
        </li>
        <li class="mui-table-view-cell">
            <a href="/index/system/model.html?m=16">商务合作</a>
        </li>
        <li class="mui-table-view-cell" onclick="logout()">
            <a href="#">退出帐号</a>
        </li>
    </ul>
</div>
<!--<nav class="mui-bar mui-bar-tab">
    <a class="tab-item" onclick="pageJump('/index/index/index.html', false)">
        <div class="iconfont icon-zhuye"></div>
        <span class="mui-tab-label">主页</span>
    </a>
    <a class="tab-item" onclick="pageJump('/index/shopping/index.html', true)">
        <div class="iconfont icon-zhuyecanting"></div>
        <span class="mui-tab-label">产品超市</span>
    </a>
    <a class="tab-item" onclick="pageJump('/index/user/index.html', false)">
        <div class="iconfont icon-user"></div>
        <span class="mui-tab-label">个人中心</span>
    </a>
</nav>-->
<script src="__PUBLIC__/jquery.min.js"></script>
<!-- 皮肤 start -->
<script>
    //顶部
    $('.mui-bar').css('backgroundColor', "#f15e70");
    $('.mui-title,.mui-pull-left,.mui-pull-right').css('color', "#ffffff");
    // 底部
    $('.mui-bar-tab').css('backgroundColor', "#f15e70");
    $('.mui-bar-tab .tab-item').css('color', "#ffffff");
    $('.mui-bar-tab .tab-item.mui-active').css({'backgroundColor':"#FF0000",'color':"#FFFF00"});
    //文字
    $('.setup-table').css('color', "#f15e70");
</script>
<!-- 皮肤 end -->
<script src="__PUBLIC__/mui.min.js"></script>
<script>
    function logout(){
        var isUser = localStorage.getItem("user");
        if(isUser == ''){
            mui.toast("您还没登录");
            return;
        }
        var btnArray = ['否', '是'];
        mui.confirm('是否要退出？', '提示', btnArray, function(e) {
            if (e.index == 1) {
                $.get('/index/user/logout','',function () {
                    mui.toast("退出成功");
                    setTimeout(function(){
                        localStorage.removeItem("user");
                        window.location.href = "/index/index/home.html";
                    }, 2000);
                })

            }
        });
    }
    function pageJump(url, cate_id){
        if(cate_id){
            window.location.href = url+'?cate_id=' + localStorage.getItem("cate_id");
        } else {
            window.location.href = url;
        }
    }
</script>
</body>
</html>